//
//  DXFParser.h
//  dxfreader
//
//  Created by Holmes Futrell on 5/20/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DXFNode.h"


@interface DXFParser : NSObject {

	NSString *currentData;
	int currentGroupCode;
	FILE *inputFile;
	BOOL isEOF;

	DXFNode *rootEntity;
	DXFNode *paperspaceViewport;
	
	NSMutableDictionary *blocks;
	NSMutableDictionary *layers;
	NSMutableDictionary *tables;
	NSMutableArray *nodeStack;
	
	
	
}

@property (readonly, retain) DXFNode *rootEntity;

-(void)parseFile:(NSString *)file;

-(DXFNode *)paperspaceViewport;

-(DXFNode *)getLayer:(NSString *)layerName;
-(DXFNode *)getBlock:(NSString *)blockName;
-(DXFNode *)getFirstActiveViewPort;
-(DXFNode *)rootEntity;


@end
